package com.core.entities;

import java.io.Serializable;

/**
 * 
 * This classes is the Data Transfer Object(Value Object) defination for the
 * entity username
 * 
 */

public class Username implements Serializable {
	private int id;
	private String username;
	private String password;
	private String role;

	public Username() {
	}

	public Username(int id, String username, String password, String role) {
		this.id = id;
		this.username = username;
		this.password = password;
		this.role = role;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return (id);
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUsername() {
		return (username);
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return (password);
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getRole() {
		return (role);
	}

	public String toString() {
		StringBuffer ret = new StringBuffer();
		ret.append("com.core.entities.Username :");
		ret.append("id='" + id + "'");
		ret.append(", username='" + username + "'");
		ret.append(", password='" + password + "'");
		ret.append(", role='" + role + "'");
		return ret.toString();
	}
}
